import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';

export const columns: BasicColumn[] = [
    {
    title: '渠道编号',
    dataIndex: 'cid'
   },
   {
    title: '渠道名称',
    dataIndex: 'name'
   },
   {
    title: '渠道类型',
    dataIndex: 'channelType'
   },
   {
    title: '二维码微信名 ',
    dataIndex: 'qrCode'
   },
   {
    title: '二维码图片含背景',
    dataIndex: 'qrImg'
   },
   {
    title: '二维码图片',
    dataIndex: 'qrOrigin'
   },
   {
    title: '短信模板',
    dataIndex: 'smsTemplate'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '渠道编号',
    field: 'cid',
    component: 'Input'
  },
 {
    label: '渠道名称',
    field: 'name',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '渠道编号',
    field: 'cid',
    component: 'Input',
  },
  {
    label: '渠道名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: '渠道类型',
    field: 'channelType',
    component: 'Input',
  },
  {
    label: '二维码微信名 ',
    field: 'qrCode',
    component: 'Input',
  },
  {
    label: '二维码图片含背景',
    field: 'qrImg',
    component: 'Input',
  },
  {
    label: '二维码图片',
    field: 'qrOrigin',
    component: 'Input',
  },
  {
    label: '短信模板',
    field: 'smsTemplate',
    component: 'Input',
  },
];
